package com.circle.rest.modular.sys.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.circle.rest.modular.sys.dao.MenuMapper;
import com.circle.rest.modular.sys.model.Menu;
import com.circle.rest.modular.sys.service.IMenuService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 菜单信息 服务实现类
 * </p>
 *
 * @author 赵航
 * @since 2019-04-02
 */
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements IMenuService {

    /**
     * 根据角色编号数组获取菜单信息
     *
     * @param roleid
     * @return
     */
    @Override
    public List<Map<String, Object>> getMenusByRoleId(String roleid) {
        return this.baseMapper.getMenusByRoleId(roleid);
    }
}
